clean	:
	cd src/ ; mvn clean ; cd ../
install :clean
	cd src/ ; mvn package ; cd ../
	rm -rf doc/apidocs
	cp -r src/target/site/apidocs/ doc/
	rm -rf lib/
	mkdir -p lib
	cp -r src/jsa4j-db-kv/target/jsa4j-db-kv-1.0-alpha-2.jar lib
	cp -r src/jsa4j-db-kv-cassandra/target/jsa4j-db-kv-cassandra-1.0-alpha-2.jar lib
	cp -r src/jsa4j-db-kv-derby/target/jsa4j-db-kv-derby-1.0-alpha-2.jar lib
	cp -r src/jsa4j-db-kv-gae/target/jsa4j-db-kv-gae-1.0-alpha-2.jar lib
	cp -r src/jsa4j-db-kv-mem/target/jsa4j-db-kv-mem-1.0-alpha-2.jar lib
	cd src/ ; mvn clean ; cd ../
	rm -rf /tmp/jsa4j-src
	mkdir -p /tmp/jsa4j-src
	cp -r * /tmp/jsa4j-src
package :install
	rm -rf /tmp/jsa4j-src/src
	rm -rf /tmp/jsa4j-src/expired
	mkdir -p tmp
	cp -r /tmp/jsa4j-src/* tmp/
	rm -f /tmp/jsa4j-1.0-alpha-2.zip
	cd tmp/ ; zip -r /tmp/jsa4j-1.0-alpha-2.zip * ; cd ../
	rm -rf tmp
package-with-src:install
	mkdir -p tmp
	cp -r /tmp/jsa4j-src/* tmp/
	rm -f /tmp/jsa4j-src-1.0-alpha-2.zip
	cd tmp/ ; zip -r /tmp/jsa4j-src-1.0-alpha-2.zip * ; cd ../
	rm -rf tmp
package-example:
	rm -f /tmp/jsa4j-example-1.0-alpha-2.zip
	zip -r /tmp/jsa4j-example-1.0-alpha-2.zip example/*
package-all:package-with-src package-example package
upload  : package-all
	python build-scripts/googlecode_upload.py -s jsa4j-1.0-alpha-2.zip -p jsa4j /tmp/jsa4j-1.0-alpha-2.zip
	python build-scripts/googlecode_upload.py -s jsa4j-src-1.0-alpha-2.zip -p jsa4j /tmp/jsa4j-src-1.0-alpha-2.zip
	python build-scripts/googlecode_upload.py -s jsa4j-example-1.0-alpha-2.zip -p jsa4j /tmp/jsa4j-example-1.0-alpha-2.zip
deploy	:
	cd src/ ; mvn deploy ; cd ../
deploy-site:
	cd src/ ; mvn site-deploy ; cd ../



